//2009/08/29 01:40:30
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class TournamentJudging
{
public:
    int getPoints(vector <int> rawScores, vector <int> conversionFactor)
    {
        int ret = 0;
        for (int i=0; i<rawScores.size(); i++)
            ret += int(0.5 + 1.0 * rawScores[i] / conversionFactor[i]);
        return ret;
    }
};
